package com.dhcc.sds.base.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.service.IBaseService;
import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.base.entity.SdsQcfitemDicEntity;
import com.dhcc.sds.base.entity.SdsQcformItemEntity;
import com.dhcc.sds.base.entity.SdsSecondaryHeaderEntity;

import java.util.List;
import java.util.Map;

/**
 * 单病种指标统计配置二级表头服务层接口
 *
 * @ClassName: ISdsSecondaryHeaderService
 * @Description: TODO
 * @author zhangdc
 * @date 2021-08-24 11:14:53
 */
public interface ISdsSecondaryHeaderService extends IBaseService<SdsSecondaryHeaderEntity> {
    List<SdsSecondaryHeaderEntity> page(Page<SdsSecondaryHeaderEntity> page, Map<String, Object> map);
    List<SdsSecondaryHeaderEntity> list(Map<String, Object> map);

    /**
     * 二级表头与病种项目或病种值域关联
     * @param fieldId
     * @param formItemId
     * @param formDicId
     */
    void compare(Long fieldId, Long formItemId, Long formDicId);

    /**
     * 撤销二级表头与病种项目或病种值域关联
     * @param fieldId
     * @param formItemId
     * @param formDicId
     */
    void undo(Long fieldId, Long formItemId, Long formDicId);

    List<ZTreeNode> getFieldTree();

    List<SdsQcformItemEntity> pageFormItem(Page<SdsQcformItemEntity> page, Map<String, Object> params);

    List<SdsQcfitemDicEntity> pageFormDic(Page<SdsQcfitemDicEntity> page, Map<String, Object> params);
}
